import { Outlet, useNavigate } from "react-router-dom";

function Layout() {

    const  navigate =useNavigate() 

    return (
        <div>
            <h1>这是一个通用的头部</h1>
            <button onClick={()=>navigate('/app')}>跳转到app</button>
            <button onClick={()=>navigate('/app')}>跳转到app</button>
            <Outlet />
        </div>
    )
}

export default Layout;